package com.soa.microsev.base.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * Created by Xuyi on 2018/08/23
 * Program arguments:--spring.profiles.active=prod,subversion --server.port=6001
 */
@EnableDiscoveryClient
@EnableConfigServer
@EnableAutoConfiguration
public class ConfigApplication {
	private static Class<?> cla = ConfigApplication.class;
	private static final Logger logger = LoggerFactory.getLogger(cla);
	
    public static void main(String[] args) {
    	
        new SpringApplicationBuilder(cla).web(true).run(args);
        
        logger.info("ConfigApplication startup >>>>>>>>>>>>>>>>>>>>>>>");
    }
}
